package net.csdn.business.common.domain.request;

import lombok.Data;
import net.csdn.business.common.domain.validation.groups.System;
import net.csdn.business.common.enums.UserTypeEnum;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author likun
 * @date 2022/6/8 18:23
 */
@Data
public class CommentDeleteReqDto implements Serializable {
    @NotBlank(message = "id 不能为空")
    @Size(min = 24, max = 24, message = "id 格式不正确")
    private String commentId;

    @NotBlank(message = "uid 不合法", groups = {System.class})
    private String uid;

    /**
     * {@link net.csdn.business.common.enums.UserTypeEnum}
     */
    private Integer userType = UserTypeEnum.USER.getType();
}